<template>
	<view class="empty-content">
		<view class="empty-box">
			<image class="empty-img" src="../../../static/noData.png"></image>
			<view class="empty-desc">{{emptyText}}</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			emptyText:{
				type:String,
				default:'暂无数据'
			}
		},
		data(){
			return {
				
			}
		}
	}
</script>

<style lang="less" scoped>
	.empty-content{
		// width:100%;
		// height:100%;
		position: absolute;
		top:50%;
		left:50%;
		transform: translateX(-50%) translateY(-50%);
		
		.empty-box{
			text-align: center;
			.empty-img{
				width:122rpx;
				height:122rpx;
			}
			.empty-desc{
				font-size: 28rpx;
				line-height: 32rpx;
				text-align: center;
				color: #999;
			}
		}
	}
</style>